package com.oocl.RTRLServer.manager;

import com.oocl.RTRLServer.server.RTServer;

public class ServerManager {
	private static RTServer currServer;
	
	public static void startServer(){
		currServer = new RTServer();
		currServer.start();
	}
	
	public static void stopServer(){
		if(currServer!=null){
			currServer.close();
		}
	}
	
	public static long getRunningTime(){
		if(currServer==null){
			return 0;
		}
		return currServer.getRunningTime();
	}
}
